package com.ymttest.common.enums;

/**
 * 账户类型
 */
public enum VPrivilegeTypeEnum {
	/**
	 * V账户
	 */
	VPrivilege(1),

	/**
	 * 白金账户
	 */
	PlatinumAccount(2);

	private int intValue;
	private static java.util.HashMap<Integer, VPrivilegeTypeEnum> mappings;

	private synchronized static java.util.HashMap<Integer, VPrivilegeTypeEnum> getMappings() {
		if (mappings == null) {
			mappings = new java.util.HashMap<Integer, VPrivilegeTypeEnum>();
		}
		return mappings;
	}

	private VPrivilegeTypeEnum(int value) {
		intValue = value;
		VPrivilegeTypeEnum.getMappings().put(value, this);
	}

	public int getValue() {
		return intValue;
	}

	public static VPrivilegeTypeEnum forValue(int value) {
		return getMappings().get(value);
	}
}